Prevent blurring when scrolling workspaces by aligning it to pixel grid,
and be consistent with app grid.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/930
let workspacesHeight = lastWorkspaceY - firstWorkspaceY;
let currentY = firstWorkspaceY;
- let newY = -adj.value / (adj.upper - 1) * workspacesHeight;
+ let newY = -Math.round(adj.value / (adj.upper - 1) * workspacesHeight);
let dy = newY - currentY;
let workspacesWidth = lastWorkspaceX - firstWorkspaceX;
let currentX = firstWorkspaceX;
- let newX = -adj.value / (adj.upper - 1) * workspacesWidth;
+ let newX = -Math.round(adj.value / (adj.upper - 1) * workspacesWidth);
let dx = newX - currentX;